﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiffenService.Db;
using BiffenService.Model;

namespace BiffenService.Control
{
    public class ShowControl
    {
        private static IShowDb showDb = new ShowDb();

        public static List<Show> GetShowsForMovie(int id)
        {
            //List<IShow> s = new List<IShow>();
            //s.Add(new RegularShow());
            //s.Add(new RegularShow());
            return showDb.GetShowsForMovie(id);
        }

        public static List<Show> GetCurrentShowsSeven(DateTime date, int theaterId)
        {   
            return showDb.GetCurrentShowsSeven(date, theaterId);    
        }

        public static bool AddShow(Show show)
        {
            return showDb.AddShow(show);

        }

        internal static bool DeleteShow(Show show)
        {
            return showDb.DeleteShow(show);
        }
    }
}
